function checkFieldUSERNAME(obj){
	if(!checkLength(obj,5)){
		showFieldError(obj,"Username too short","Orange");
		return false;
	}
	return true;
}

function checkFieldPASSWORD(obj){
	if(!checkLength(obj,8)){
		showFieldError(obj,"Password too short","Orange");
		return false;
	}
	return true;
}

function validateSignUpForm(){
	
	var form = document.getElementById("signUpForm")
	
	var userName = form["userName"].value;		
	var userPassword = form["userPassword"].value;
	var userPasswordConfirm = form["userPasswordConfirm"].value;	
	
	if(userName == null || userName ==""){
		alert("Userid is Mandatory");
		return false;
	}	

	if(userPassword == null || userPassword ==""){
		alert("Password is Mandatory");
		return false;
	}	

	if(userPassword != userPasswordConfirm){
		alert("Password mismatch");
		return false;
	}
	return true;
}

